import React from 'react'

export default class Navbar extends React.Component {
    back(){
        window.history.go(-1)
    }
    render() {
        return (
            <div className="navbar-content">
                <button onClick={this.back}>
                    <i className="iconfont icon-return"></i>返回
                </button>
                <span>{this.props.title}</span>
                <i className="iconfont icon-menu">
                </i>
            </div>
        )
    }
}
